﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZR.Model;

namespace ImportPlcPointPosition.Models {
    [SugarTable("cks_validation_field")]
    public class CksValidationField : BaseEntity {
        
        [SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
        public int Id { get; set; }

        public int BusinessType { get; set; } = 1;

        public int BusinessId { get; set; }

        public string Notes { get; set; } = string.Empty;

        public int Sequence { get; set; } = 99;

        public int DataId { get; set; }

        private bool isPrimary;
        public bool IsPrimary {
            get => isPrimary;
            set {
                isPrimary = value;
                OnPropertyChanged("IsPrimary");
            }
        }

        private bool isResult;
        public bool IsResult {
            get => isResult;
            set {
                isResult = value;
                OnPropertyChanged("IsResult");
            }
        }

        public DateTime CreatedTime { get; set; } = DateTime.Now;


        #region Ignore
        private bool _IsCheck;
        [SugarColumn(IsIgnore = true)]
        public bool IsCheck {
            get => _IsCheck;
            set {
                _IsCheck = value;
                base.OnPropertyChanged();
                //OnPropertyChanged("AgvEnable");
            }
        }
        #endregion

    }
}
